<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');

if ( ! function_exists('getToken'))
{
    function getToken($var = '')
    {
        if( isset($$var)){
    	return $var;
        }
        else return false;
    }   
}
if ( ! function_exists('getError'))
{
	function getError( $errors,$field){
		
		if( !empty( $errors ) && in_array( $field,$errors ) ){
			return true;
		}
	}
}

?>